package com.jiugang.cardump.service;

import com.jiugang.cardump.entity.Monitor;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiugang.cardump.pojo.CarDumperPOJO;
import com.jiugang.cardump.pojo.MonitorParamPOJO;
import com.jiugang.cardump.result.ResultInfoV110;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2021-08-19
 */
public interface MonitorService extends IService<Monitor> {

    //数据监测并写入
    ResultInfoV110 insert(CarDumperPOJO carDumperPOJO);
    //车钩状态查询
    ResultInfoV110 selectEuipmentHookStatuAllList(String equipmentId, Integer page, Integer size, String StartTime, String endTime);

    /**
     * @param equipmentId 设备Id
     * @Decription 根据设备Id查询最新30条设备车钩状态
     * @return ResultInfoV110
     */
    ResultInfoV110 selectEuipmentHookStatuList(String equipmentId);

    /**
     * @param equipmentId 设备Id
     * @Decription 根据设备Id查询最新30条设备压车臂状态
     * @return ResultInfoV110
     */
    ResultInfoV110 selectEuipmentPressArmStatuList(@Param("equipmentId") String equipmentId);

    /**
     * @param monitorParamPOJO
     * @Decription 根据表主键Id查询设备压车臂状态,分页
     * @return List<Monitor>
     */
    ResultInfoV110 selectEuipmentPressArmStatuPageList(MonitorParamPOJO monitorParamPOJO);

    /**
     * @param equipmentId
     * @Decription 根据设备Id查询最新30条设备轨道状态
     * @return ResultInfoV110
     */
    ResultInfoV110 selectEuipmentTrackStatuList(@Param("equipmentId") String equipmentId);

    /**
     * @param monitorParamPOJO
     * @Decription 根据表主键Id查询设备轨道状态,分页
     * @return List<Monitor>
     */
    ResultInfoV110 selectEuipmenTrackStatuPageList(MonitorParamPOJO monitorParamPOJO);

}
